anima.define({
      
/* component descriptor */
webid: "<http://purl.org/dcc/visual.cdisplay.fishaq.aquarium.Aquarium>",
superWebid: "<http://purl.org/dcc/view.base.WidgetBase>",

/* component creator */
creator: function(context, webid) {
   var constructor = function() {
      this.theFish = null;
   };
   
   var prototype = {
      theFish: null,
      
      connect: function(theFish) {
         this.theFish = theFish;
      },
      
      getPresentationHTML: function() {
         var result = "<code>" +
                      "+----------------+<br/>" +
                      "|~~~~~~~~~~~~~~~~|<br/>";
         
         if (this.theFish != null)
            result += this.theFish.getPresentationHTML();
         
         result += "<br/>" +
                   "|~~~~~~~~~~~~~~~~|<br/>" +
                   "+----------------+" +
                   "</code>";
         
         return result;
      }
   };

   anima.component.create(context, webid, constructor, prototype);
}

});                  
